package com.core.family.admin.domain;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author honglei
 * @version 1.0
 * @time: 2024-6-17 14:49:08
 * @Description PO对象 日志
 */
@Data
@TableName(value = "sys_log")
public class Log implements Serializable {


    /*
     *  主键id
     */
    @TableField(value = "id")
    //  private Long id;
    private String id;

    /*
     *  机构id
     */
    @TableField(value = "org_id")
    private Integer orgId;

    /*
     *  操作人
     */
    @TableField(value = "operater")
    private String operater;

    /*
     *  操作人id
     */
    @TableField(value = "operater_id")
    private Integer operaterId;

    /*
     *  IP
     */
    @TableField(value = "ip")
    private String ip;

    /*
     *  操作类型
     */
    @TableField(value = "act_type")
    private String actType;

    /*
     *  操作动作
     */
    @TableField(value = "content")
    private String content;

    /*
     *  执行结果
     */
    @TableField(value = "result")
    private String result;

    /*
     *  备注
     */
    @TableField(value = "commnet")
    private String commnet;

    /*
     *  创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
